package site.qianli.discover.service.aspect;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@Aspect
public class AnnotatationAspect {
	private Logger logger = LoggerFactory.getLogger(getClass());

	@Before("@annotation(site.qianli.discover.common.annotations.Info)")
	public void beforeAdvice(JoinPoint joinPoint) throws Throwable {
		logger.info("@Before @annotation:{}.{}", joinPoint.getSignature().getDeclaringTypeName(),
				joinPoint.getSignature().getName());
	}
}
